package com.jz.model;

import java.io.Serializable;

import com.jz.formm.Nut;

public class User implements Serializable, Nut {

	private String username;
	private String password;
	private String email;

	public User(String username,String password,String email) {
		super();
		this.username = username;
		this.password = password;
		this.email = email;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassward() {
		return password;
	}

	public void setPassward(String passward) {
		this.password = passward;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Comparable getPrimaryValue() {
		return username;
	}

	public Object getValueByName(String variableName) {
		return "username".equals(variableName) ? username : null;
	}
}
